@import "./font.scss";
.Jcommon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10px;
  flex-shrink: 0;

  .Jcommon-head-right {
    flex-shrink: 0;
    font-size: 0;

    .el-link {
      margin-left: 12px;
    }

    .Jcommon-head-icon {
      color: #606266;
    }
  }
}

.Jcommon-el-tree {
  margin: 10px 0;
}

.Jcommon-layout {
  height: 100%;
  width: 100%;
  display: flex;
  position: relative;
  background: #EBEEF5;

  .Jcommon-layout-left {
    width: 220px;
    padding: 0 10px;
    background-color: #fff;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-right: 10px;

    .Jcommon-title {
      flex-shrink: 0;
    }

    .Jcommon-el-tree-scrollbar {
      flex: 1;

      .el-scrollbar__wrap {
        overflow-x: hidden;
      }
    }

    .custom-tree-node {
      width: calc(100% - 30px) !important;
    }

    .Jcommon-el-tree {
      flex: 1;
      overflow: auto;
      overflow-x: hidden;

      .el-tree-node__content {
        height: 40px;
        line-height: 40px;
      }

      // .is-current>.el-tree-node__content .custom-tree-node {
      //   color: #409eff;
      // }
    }
  }
}

.Jcommon-layout-center {
  flex: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  .Jcommon-layout-main {
    flex: 1;
    padding: 0 0 10px;
    background-color: #fff;
    height: 100%;
    overflow: hidden;

    &.nohead {
      padding-top: 10px;
    }
  }
}

.Jcommon-search-box {
  background: #fff;
  flex-shrink: 0;
  margin-bottom: 10px;
  padding: 15px 10px 0;
  position: relative;

  .el-form-item {
    width: 100%;
    display: flex;
    margin-bottom: 14px !important;


    .el-form-item__label {
      flex-shrink: 0;
      padding-right: 12px;
    }

    .el-form-item__content {
      flex: 1;
    }

    .el-input,
    .el-select,
    .el-cascader,
    .comSelect-container,
    .el-date-editor {
      width: 100%;
    }
  }

  .Jcommon-search-box-right {
    position: absolute;
    right: 10px;
    top: 15px;
  }
}

.el-table {
  border-top: 1px solid #EBEEF5;

  thead {

    tr,
    tr th {
      background-color: #f5f7fa;
      font-weight: normal;
    }
  }

  .el-switch {
    transform: scale(0.8);
  }

  .el-button--mini.el-button--text {
    padding: 3px 0;
  }

  &.columnTable {
    border-top: none;

    thead {

      tr,
      tr th {
        background-color: #fff;
      }
    }

    td {
      border-bottom: none;
    }

    &.el-table--mini td,
    &.el-table--mini th {
      padding: 3px 0;
    }

    &::before {
      height: 0;
    }
  }

  &::before {
    height: 0 !important;
  }

  .el-table__fixed-right-patch {
    background-color: #f5f7fa;
    top: 0;
  }

  .has-gutter .gutter {
    border-bottom: 1px solid #ebeef5;
  }

  .el-table__empty-block {
    display: inline-block;
  }

  .el-table__column-filter-trigger {
    line-height: 22px;
  }

  .caret-wrapper {
    height: 23px !important;
  }

  .sort-caret.ascending {
    top: 0px !important;
  }

  .sort-caret.descending {
    bottom: 1px !important;
  }
}

.JTable-delBtn {
  color: #ff3a3a !important;

  &.el-button--text:hover,
  &.el-button--text:focus {
    color: #ff3a3a !important;
  }

  &.is-disabled {
    color: #C0C4CC !important;

    &.el-button--text:hover,
    &.el-button--text:focus {
      color: #C0C4CC !important;
    }
  }
}

.Jdialog {
  &.Jdialog_center {
    display: flex;
    justify-content: center;
    align-items: center;

    .el-dialog {
      border-radius: 4px;
      margin: 0 !important;

      .el-dialog__header {
        border-bottom: 1px solid #dcdfe6;
        padding: 0 20px;
        height: 56px;
        line-height: 56px;

        .el-dialog__headerbtn {
          top: 16px;
          right: 16px;
        }
      }

      .el-dialog__body {
        overflow: auto;
        overflow-x: hidden;
        max-height: 70vh;
        padding: 20px 50px 2px;
      }

      .el-dialog__close {
        font-size: 24px;
      }
    }

    &.transfer-dialog {
      .el-dialog .el-dialog__body {
        padding: 10px;
      }
    }
  }

  &.enlarge-dialog .el-dialog .el-dialog__header {
    border-bottom: none;
  }

  .el-select {
    width: 100%;
  }
}

.Jdialog-tree {
  .el-dialog {
    .el-dialog__body {
      .el-tree {
        overflow: auto;
        overflow-x: hidden;
        height: 340px;
      }
    }
  }
}

.Jcommon-title {
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  color: #606266;
  align-items: center;

  h2 {
    font-size: 16px;
    line-height: 50px;
    font-weight: 500;

    &.bold {
      font-weight: 600;
    }
  }

  .options {

    &>i,
    .el-link {
      font-size: 16px;
      margin-left: 6px;
      cursor: pointer;
    }
  }

  &+.el-table {
    border-top: none;
  }
}

.custom-tree-node {
  width: calc(100% - 24px);
  flex: 1;
  display: flex;
  font-size: 0;
  align-items: center;

  i {
    font-size: 14px;
  }

  .text {
    flex: 1;
    font-size: 14px;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  i+.text {
    padding-left: 6px;
  }

  .more {
    float: right;
  }
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.pd-10 {
  padding: 10px;
}

.Jcommon-page-header {
  padding: 14px 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #dcdfe6;

  .options {
    flex-shrink: 0;
    margin-left: auto;
  }

  .el-page-header {
    .el-page-header__left {
      flex-shrink: 0;
    }

    .el-page-header__content {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .steps {
    width: 300px;
    padding: 6px 20px;
    background: #fff;
    justify-items: flex-start;

    .el-step__title {
      cursor: pointer;
    }
  }
}

.Jpreview-main {
  position: absolute;
  background-color: #fff;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 100;
  overflow: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;

  &.nohead {
    padding-top: 10px;
  }

  .btns {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 100;
  }

  .el-table--mini td {
    padding: 2px 0;
  }

  .el-table {
    flex: 1;
  }

  .Jcommon-search-box {
    margin-bottom: 0;
  }

  .main {
    padding: 10px;
    flex: 1;
    overflow: auto;
    overflow-x: hidden;
  }
}

.Jflex-main {
  display: flex;
  flex-direction: column;

  .el-table {
    flex: 1;

    &::before {
      border-bottom: 0;
      height: 0px
    }
  }

  .el-table__fixed::before,
  .el-table__fixed-right::before {
    border-bottom: 0;
    height: 0px
  }
}

// 处理el-tabs
.Jel_tabs {
  height: 100%;

  &.el-tabs--top {
    display: flex;
    flex-direction: column;
  }

  .el-tabs__content {
    flex: 1;
    overflow: auto;
    overflow-x: hidden;

    .el-tab-pane {
      height: 100%;
    }
  }
}

.text-primary {
  color: #188ae2 !important;
}

.text-success {
  color: #0eac5c !important;
}

.text-info {
  color: #35b8e0 !important;
}

.text-warning {
  color: #f9c851 !important;
}

.text-danger {
  color: #ff5b5b !important;
}

.text-pink {
  color: #ff8acc !important;
}

.text-purple {
  color: #5b69bc !important;
}

.text-inverse {
  color: #3b3e47 !important;
}

.text-dark {
  color: #282828 !important;
}

.text-white {
  color: #ffffff !important;
}

.text-color {
  color: #6a6c6f !important;
}

.text-grey {
  color: #999 !important;
}

.i-default {
  color: #6b7a99 !important;
}

.title-color {
  color: #475059 !important;
}

.Jselect-tags {
  display: none !important;
}

.functional {
  .navbar {

    &.dark {
      background: #031425;

      .functional-logo-container {
        background: #031425;
      }

      .right-menu {
        .right-menu-item {
          color: #fff;
        }
      }

      .icon-ym {
        color: #fff;
      }

      .top-menu .el-menu {

        .el-menu-item,
        .el-submenu__title {
          color: #fff;

          i {
            color: #fff;
          }

          &.is-active {
            color: #1890ff;

            i {
              color: #1890ff;
            }
          }

          &:hover {
            color: #1890ff;

            i {
              color: #1890ff;
            }
          }
        }
      }
    }
  }

  .top-menu {
    .el-menu {
      height: 60px;
      background: transparent;

      &.el-menu--horizontal {
        border-bottom: none;

        .el-icon-arrow-down {
          display: none !important;
        }
      }

      .el-menu-item,
      .el-submenu__title {
        height: 61px !important;
        line-height: 60px !important;
        // width: 120px;
        float: left;
        text-align: center;
        background: transparent;
        color: #333;

        i {
          font-weight: normal;
          color: #333;
        }

        .left-icon {
          margin-left: 0 !important;
          margin-right: 4px;
        }

        &.is-active {
          color: #1890ff;

          i {
            color: #1890ff;
          }
        }

        &:hover {
          color: #1890ff;

          i {
            color: #1890ff;
          }
        }
      }

      .el-submenu {
        // width: 120px;
        float: left;
        text-align: center;

        &:hover {
          .el-submenu__title {
            color: #1890ff;
            background: transparent;

            i {
              color: #1890ff;
            }
          }
        }

        &.is-active {
          .el-submenu__title {
            color: #1890ff;

            i {
              color: #1890ff;
            }
          }
        }
      }
    }

    .el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
      background: transparent;
    }
  }

  &.el-menu--horizontal {

    .el-menu {
      &.el-menu--popup {
        min-width: 160px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
      }

      .nest-menu {
        .el-submenu {
          &.is-active {
            .el-submenu__title {
              color: #1890ff;

              i {
                color: #1890ff;
              }
            }
          }
        }

        .el-menu-item,
        .el-submenu__title {

          .el-submenu__icon-arrow {
            margin-top: -5px;
          }

          .left-icon {
            font-size: 20px;
            margin-right: 6px;
            margin-left: 15px;
          }

          &:hover {
            color: #1890ff;

            i {
              color: #1890ff;
            }
          }

          &.is-active {
            color: #1890ff;

            i {
              color: #1890ff;
            }
          }
        }
      }
    }

    &.dark {
      .el-menu {
        background: #031425;

        .el-menu-item,
        .el-submenu__title {
          background: #031425;
          color: #fff;

          i {
            color: #fff;
          }
        }

      }
    }
  }
}

#app .plain {
  .navbar-platform {
    color: #666;
    line-height: 60px;
    font-size: 16px;
    margin-left: 20px;
  }

  .el-menu {
    border: none;
    height: 100%;
    width: 100% !important;
    background: #001529;
    color: #fff;
  }

  .plain-sidebar-container {
    width: 80px;
    background-color: #001529;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    -webkit-box-shadow: 0 66px 12px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 66px 12px 0 rgba(0, 0, 0, 0.1);

    .el-scrollbar {
      height: calc(100% - 60px);
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .left-icon {
          font-size: 28px;
        }
      }
    }

    .el-menu {
      .el-menu-item {
        height: 70px !important;
        text-align: center;
      }

      .left-icon {
        margin-right: 0;
        font-size: 30px;
        margin-bottom: 0;
      }

      .mainTitle {
        font-size: 12px;
        line-height: 24px;
        margin-top: -8px;
      }
    }

    .el-submenu {
      overflow: hidden;
      height: 70px !important;
      text-align: center;

      &>.el-submenu__title {
        padding: 0 !important;
        height: 70px !important;

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
  }

  .main-container {
    margin-left: 80px;
  }

}

.plain.el-menu--vertical {
  top: 0;

  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;
  }
}

.Jfull-dialog {
  .el-dialog__header {
    padding: 0;
  }

  .el-dialog__body {
    padding: 0;
    height: 100%;
    overflow: hidden;
  }

  .Jfull-dialog-header {
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .header-title {
      height: 60px;
      width: 320px;
    }

    .header-logo {
      width: auto;
      height: 60px;
      vertical-align: top;
      margin-right: 3px;
      font-size: 30px;
      color: #fff;
    }

    .header-txt {
      line-height: 60px;
      display: inline-block;
      margin: 0;
      color: #333;
      font-size: 18px;
    }

    .steps {
      width: 450px;
      padding: 6px 20px;
      background: #fff;
      justify-items: flex-start;
      flex-shrink: 0;

      .el-step__title {
        cursor: pointer;
      }
    }

    .options {
      width: 320px;
      text-align: right;
    }
  }

  .main {
    height: calc(100vh - 60px);
    overflow: hidden;
    background: #EBEEF5;
    padding: 10px;

    .basic-box {
      height: 100%;
      overflow: hidden;
    }

    .basicForm {
      background: #fff;
      padding: 20px;
      border-radius: 4px;
      height: 100%;
      overflow: auto;
      overflow-x: hidden;

      .el-select {
        width: 100%;
      }
    }
  }
}

.table-actions {
  margin-top: 10px;
  border: #ebeef5 1px dashed;
  text-align: center;
}

.Jcommon-drawer {
  .el-drawer__header {
    height: 60px;
    border-bottom: 1px solid #dcdfe6;
    padding: 0 20px;
    margin-bottom: 0;

    &>span {
      line-height: 60px;
    }
  }

  .Jflex-main {
    height: calc(100vh - 60px);
  }
}

.portal-common-title {
  font-size: 16px;

  span {
    border-left: 4px solid #1890ff;
    padding-left: 8px;
  }
}

.portal-common-noData {
  text-align: center;
  padding-top: 50px;

  &.portal-common-noData-eChart {
    padding-top: 70px;

    .noData-img {
      width: 200px;
      height: 200px;
    }
  }

  .noData-img {
    width: 100px;
    height: 100px;
  }

  .noData-txt {
    font-size: 14px;
    color: #909399;
    line-height: 20px;
  }
}

.portal-layout-nodata {
  text-align: center;
  position: absolute;
  top: calc(50% - 200px);
  left: calc(50% - 200px);

  .layout-nodata-img {
    width: 400px;
    height: 400px;
  }

  .layout-nodata-txt {
    margin-top: -60px;
    font-size: 20px;
    color: #909399;
    line-height: 30px;
  }
}

.portal-todoList-box {
  .el-card__header {
    height: 55px;
  }

  .el-card__body {
    width: 100%;
    height: calc(100% - 55px);
  }

  .portal-todoList-box-body {
    padding: 16px 20px;
    height: 100%;
    overflow: hidden;

    .item {
      display: block;
      line-height: 20px;
      font-size: 0;
      margin-bottom: 12px;

      &::after {
        content: "";
        clear: both;
        overflow: hidden;
      }

      .name {
        font-size: 14px;
        display: inline-block;
        width: calc(100% - 90px);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        word-break: break-all;
        vertical-align: top;
      }

      .time {
        font-size: 14px;
        display: inline-block;
        color: #999;
        width: 90px;
        text-align: right;
      }
    }
  }
}

.portal-eChart-box {

  .el-card__header {
    height: 55px;
  }

  .el-card__body {
    width: 100%;
    height: calc(100% - 55px);
  }

  .eChart-box-body,
  #chart {
    width: 100%;
    height: 100%;
  }

  #chart {
    z-index: 10;
    padding: 10px;
  }
}

.dynamicDetail {

  .dynamicDetail-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .dy-fileList {
    .dy-fileList-item {
      color: #606266;
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.3s;
      white-space: nowrap;
      cursor: pointer;
      margin-top: 10px;
      line-height: 25px;

      .el-icon-document {
        margin-right: 7px;
        line-height: inherit;
      }

      &:hover {
        background-color: #f5f7fa;
      }
    }
  }

  .el-color-picker__mask {
    background: none;
  }

  .el-switch.is-disabled {
    opacity: 1;
  }

  .slider-box {
    position: relative;

    .slider-mark {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background: transparent;
      z-index: 1100;
    }
  }

  .el-table th {
    line-height: 23px !important;
  }
}

// 重定义element-ui 样式
.el-message-box__wrapper .el-message-box {
  border-width: 0;
}

.el-rate {
  display: inline-block;
  vertical-align: text-top;
}

.el-message-box {
  .el-textarea {
    textarea {
      min-height: 88px !important;
    }
  }
}

.el-table__expanded-cell[class*=cell] {
  padding: 5px 25px !important;
}

.el-button+.el-popconfirm,
.el-button+.el-dropdown,
.el-popconfirm+.el-button,
.el-popconfirm+.el-dropdown {
  margin-left: 10px;
}

textarea.el-textarea__inner {
  resize: none;
}

.el-form--label-top .el-form-item__label {
  padding: 0 !important;
}

.el-input-number.is-controls-right .el-input__inner {
  text-align: left !important;
}

.word-form {
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid #dcdfe6;
  border-left: 1px solid #dcdfe6;

  &.word-from-detail {
    .el-form-item__label+.el-form-item__content {
      padding: 0 15px;

      .el-rate,
      .el-color-picker,
      .el-switch {
        padding-left: 0;
      }
    }

    .el-col.item-table {
      border-bottom: none;
    }
  }

  .el-col {
    border-right: 1px solid #dcdfe6;
    border-bottom: 1px solid #dcdfe6;
    padding: 0 !important;
    box-sizing: border-box;

    &.item-card {
      border: none
    }
  }

  .el-form-item {
    margin-bottom: 0 !important;

    .el-form-item__label+.el-form-item__content {
      border-left: 1px solid#dcdfe6;
      padding-top: 5px;
      padding-bottom: 5px;
    }

    .el-form-item__error {
      top: 68% !important;
    }

    .el-form-item__label {
      padding-top: 5px;
      padding-bottom: 5px;
    }
  }

  .el-input__inner {
    border: 0 !important;
  }

  textarea {
    border: 0 !important;
  }

  .table-actions {
    border: none;
    margin-top: 0;
  }

  .el-row {
    margin: 0 !important;

    .el-col {
      border: 0;
    }
  }

  .el-card {
    box-shadow: none !important;
    border: 0;
    margin-bottom: 0;
    border-radius: 0;

    .el-card__body {
      padding: 0;
    }

    .el-row {
      .el-col {
        border: 0;
      }
    }
  }

  h1 {
    border: 0 !important;
    border-bottom: 0 !important;
  }

  .ql-toolbar {
    border: 0 !important;
    border-bottom: 1px solid #dcdfe6 !important;
  }

  .ql-container {
    border: 0 !important;
  }

  .el-radio-group,
  .el-checkbox-group,
  .el-rate,
  .el-color-picker,
  .el-switch {
    padding-left: 15px;
  }

  .el-slider,
  .UploadFile-container {
    padding: 0 15px;
  }

  .el-input-number {
    margin-left: 15px;
  }

  .JNPFAmount {
    padding: 0 15px;

    .el-input-number {
      margin-left: 0;
    }
  }

  .el-table {

    td,
    th {
      border-right: 1px solid #dcdfe6;
      border-bottom: 1px solid #dcdfe6 !important;

      &:last-child {
        border-right: none !important;
      }

      &:hover {

        &::after,
        &::before {
          border-color: transparent !important;
        }
      }
    }

    .el-input-number {
      margin-left: 0;
    }

    .el-color-picker,
    .el-switch {
      padding-left: 0;
    }
  }

  .el-table th:nth-last-child(2) {
    border-right: none !important;
  }

  .Jcommon-title {
    border-bottom: 1px solid #dcdfe6 !important;
  }
}

.table-switch.el-switch.is-disabled {
  opacity: 1;

  .el-switch__core,
  .el-switch__label {
    cursor: pointer;
  }
}

.el-dropdown-menu__item .icon-ym {
  vertical-align: -1px;
}